package com.gzhryc.net_marketing.supplier.config.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.net_marketing.supplier.config.dao.enums.SupplierLogisticsCompanyEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * 物流公司配置
 */
@Table(name = "config_logistics_company")
public class SupplierLogisticsCompany implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(auto = false)
    @Column
    protected String id;

    @Column
    protected String name;

    @Column(name = "contact_man")
    protected String contactMan;

    @Column(name = "contact_phone")
    protected String contactPhone;

    @Column
    protected Integer state;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContactMan() {
        return contactMan;
    }

    public void setContactMan(String contactMan) {
        this.contactMan = contactMan;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getStateName(){
        return SupplierLogisticsCompanyEnum.State.note(this.state);
    }

}
